package com.ludomancy.insane;

import java.awt.Graphics;
import java.awt.Point;

import com.ludomancy.gamelib.ResourceManager;

public class Bucket extends InsaneEntity
{

	public Bucket(Point pos)
	{
		super(pos);
	}

	public boolean isPickable()
	{
		return true;
	}
	
	public void apply(Point where)
	{
		Point tile = toTile(where);
		Game.game.earth.flood(tile.x, tile.y);
	}

	public void paint(Graphics g, int x, int y)
	{
		g.drawImage(ResourceManager.getImage("water.png"), x, y, null);
	}

}
